#ifndef DECODETHREAD_H
#define DECODETHREAD_H

#include <QtCore>

class DecodeThread : public QThread
{
  Q_OBJECT
  bool quitExecution;           // if true, thread exits gracefully
  QMutex quitExecutionMutex;    // protects the quitExecution variable

protected:
  virtual void run();

public:
  DecodeThread():
    quitExecution(false)
  {
  }

  ~DecodeThread();

public slots:
  void quit();

};

#endif // DECODETHREAD_H
